package com.weds.frame.domain.entity;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;

import java.util.HashMap;
import java.util.Map;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/16 14:29
 */
public class JsonMapEntity {
    protected Map<String,Object> fileds = new HashMap<String,Object>();
    // "any getter" needed for serialization
    @JsonAnyGetter
    public Map<String,Object> any() {
        return fileds;
    }
    @JsonAnySetter
    public void set(String name, Object value) {
        fileds.put(name, value);
    }
}
